import {
    idNumEl,
    maskEl,
    btnEl,
    userNumEl,
    stateEl
} from "./varible.js";

function inputIsEmpty() {
    btnEl.addEventListener('click', function () {
        if (idNumEl.value == "") {
            alert("学号不可为空！请重新输入");
        } else {
            window.localStorage.setItem("studentId", idNumEl.value);
            maskEl.style.display = "none";
            userNumEl.innerHTML = idNumEl.value;
            stateEl.style.display = "block";
        }
    })

}
export {
    inputIsEmpty
}